-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
add preStop command to destroy pod #33
Conversation
Signed-off-by: Valeriy Svydenko <[email protected]>
@dmytro-ndp could you please take a look |
@svor : I have tested PR using Che dogfooding instance. At the same time I have faced the error
Could you take a look, please? |
@dmytro-ndp thank you for the review
Maybe it was some glitch when test pod was created. |
@svor : thank you for the investigation. I checked it one more time and when went through all devfile commands from 1 to 6 the command 3 executed correctly, but command 6 failed with the same error:
I have reproduced the problem in the new workspace created from https://github.com/devspaces-samples/ansible-devspaces-demo/tree/sv-preStop - "devfile: 6.Molecule: run the full molecule test" command failed with the same error message: |
It seemed to be my account specific problem, because I faced the same error when triyed to execute |
Adds a preStop command to terminate the pod used by Molecule when the workspace is stopped
How to test:
1/ Create a workspace from https://github.com/devspaces-samples/ansible-devspaces-demo/tree/sv-preStop
2/ Run 6.Molecule: run the full molecule test command
3/ Check that test pod molecule-ubi8-python-1 is created on OS console:
4/ Stop the workspace
5/ Check that the test pod is terminated automatically
Related issue: https://issues.redhat.com/browse/CRW-6871